package com.binc.testspring.rabbitmq.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
// @RabbitListener(queues = "topic.d4") //只接受 主题 topic.d
public class RecieveTopic_d {

    @RabbitHandler
    public void queueRecieve(String queue1){
        System.out.println("RecieveTopic_d4,监听topic.d4消息，收到："+queue1);
    }

}
